﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class add_c : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.DropTable(
            //    name: "App_org_rule_relation");

            //migrationBuilder.DropTable(
            //    name: "Bb_buy_time_log");

            //migrationBuilder.DropTable(
            //    name: "Bb_repairs_time_log");

            //migrationBuilder.DropTable(
            //    name: "Bb_service_time_log");

            //migrationBuilder.DropTable(
            //    name: "Evaluate_index");

            //migrationBuilder.DropTable(
            //    name: "User_base_info");

            //migrationBuilder.DropTable(
            //    name: "Vote_users");

            //migrationBuilder.DropTable(
            //    name: "Wy_mt_inout_details");

            //migrationBuilder.DropTable(
            //    name: "Wy_user_repairs_comments_pict");

            //migrationBuilder.DropTable(
            //    name: "Wy_user_repairs_pict");

            //migrationBuilder.AddColumn<long>(
            //    name: "ParkingId",
            //    table: "UserCarInfos",
            //    nullable: false,
            //    defaultValue: 0L);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.DropColumn(
            //    name: "ParkingId",
            //    table: "UserCarInfos");

            //migrationBuilder.CreateTable(
            //    name: "App_org_rule_relation",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Keyword = table.Column<string>(nullable: true),
            //        Orgid = table.Column<long>(nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_App_org_rule_relation", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Bb_buy_time_log",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        After_date = table.Column<string>(nullable: true),
            //        After_end_time = table.Column<string>(nullable: true),
            //        After_start_time = table.Column<string>(nullable: true),
            //        Before_date = table.Column<string>(nullable: true),
            //        Before_end_time = table.Column<string>(nullable: true),
            //        Before_start_time = table.Column<string>(nullable: true),
            //        Buy_log_id = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Bb_buy_time_log", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Bb_repairs_time_log",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        After_date = table.Column<string>(nullable: true),
            //        After_end_time = table.Column<string>(nullable: true),
            //        After_start_time = table.Column<string>(nullable: true),
            //        Before_date = table.Column<string>(nullable: true),
            //        Before_end_time = table.Column<string>(nullable: true),
            //        Before_start_time = table.Column<string>(nullable: true),
            //        Repairs_log_id = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Bb_repairs_time_log", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Bb_service_time_log",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        After_date = table.Column<string>(nullable: true),
            //        After_end_time = table.Column<string>(nullable: true),
            //        After_start_time = table.Column<string>(nullable: true),
            //        Before_date = table.Column<string>(nullable: true),
            //        Before_end_time = table.Column<string>(nullable: true),
            //        Before_start_time = table.Column<string>(nullable: true),
            //        Service_log_id = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Bb_service_time_log", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Evaluate_index",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Name = table.Column<string>(nullable: true),
            //        Pid = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Evaluate_index", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "User_base_info",
            //    columns: table => new
            //    {
            //        Id = table.Column<long>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Birthday = table.Column<string>(nullable: true),
            //        Email = table.Column<string>(nullable: true),
            //        Identification = table.Column<string>(nullable: true),
            //        Isdel = table.Column<int>(nullable: false),
            //        Name = table.Column<string>(nullable: true),
            //        Password = table.Column<string>(nullable: true),
            //        Phone = table.Column<string>(nullable: true),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_User_base_info", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Vote_users",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Itemid = table.Column<int>(nullable: false),
            //        Openid = table.Column<string>(nullable: true),
            //        TenantId = table.Column<int>(nullable: true),
            //        Voteid = table.Column<int>(nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Vote_users", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Wy_mt_inout_details",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Mt_id = table.Column<int>(nullable: false),
            //        Mti_id = table.Column<int>(nullable: false),
            //        Remark = table.Column<string>(nullable: true),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Wy_mt_inout_details", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Wy_user_repairs_comments_pict",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Pict_url = table.Column<string>(nullable: true),
            //        Re_comments_id = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Wy_user_repairs_comments_pict", x => x.Id);
            //    });

            //migrationBuilder.CreateTable(
            //    name: "Wy_user_repairs_pict",
            //    columns: table => new
            //    {
            //        Id = table.Column<int>(nullable: false)
            //            .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
            //        Optime = table.Column<DateTime>(nullable: false),
            //        Pict_url = table.Column<string>(nullable: true),
            //        Repairsid = table.Column<int>(nullable: false),
            //        TenantId = table.Column<int>(nullable: true)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_Wy_user_repairs_pict", x => x.Id);
            //    });
        }
    }
}
